package com.polymorphic;

public class Demo {
	
	public static void main(String[] args) {
		
		BaseObject base = new ModelOne();
		TestInterface aa = new TestInterfaceImplTwo();
		test(aa);
		System.out.println(base.id);
	
	}
	
	
	public static void play(BaseObject base) {
		base.play();
	}
	
	
	public static void test(TestInterface aa) {
		aa.a();
	}
	

}
